package org.example.librarysystemspringboot.service;

import org.example.librarysystemspringboot.entity.model.BorrowRecords;
import org.example.librarysystemspringboot.repository.BorrowRecordsRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Optional;


public interface BorrowRecordsService {

    List<BorrowRecords> getAllBorrowRecords();

    // 根据 ID 查询借阅记录
    BorrowRecords getBorrowRecordById(Integer id);

    // 插入借阅记录
    BorrowRecords addBorrowRecord(BorrowRecords borrowRecord);
}